package com.sealer.pattern.behavioral.observer;

/**
 * Created by sealer on 17/04/06.
 */
public class OctalObserver extends Observer {
    public OctalObserver(Subject subject) {
        this.subject = subject;
        this.subject.attach(this);
    }

    @Override
    public void update() {
        System.out.println("the subject's state changed, now in octal, it is " + Integer.toOctalString(subject.getState()));
    }
}
